package org.pierre.inputbenchmark.activity;

import org.pierre.inputbenchmark.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class MainMenuActivity extends Activity
{
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		
		this.setContentView(R.layout.main_menu);
		
		this.findViewById(R.id.touch_button).setOnClickListener(new OnClickListener()
		{
			public void onClick(View v)
			{
				MainMenuActivity.this.startActivity(new Intent(MainMenuActivity.this, TouchBenchmarkActivity.class));
			}
		});
		
		this.findViewById(R.id.accelerator_button).setOnClickListener(new OnClickListener()
		{
			public void onClick(View v)
			{
				MainMenuActivity.this.startActivity(new Intent(MainMenuActivity.this, AccelerometerBenchmarkActivity.class));
			}
		});
		
		this.findViewById(R.id.multitouch_button).setOnClickListener(new OnClickListener()
		{
			public void onClick(View v)
			{
				MainMenuActivity.this.startActivity(new Intent(MainMenuActivity.this, MultitouchBenchmarkActivity.class));
			}
		});
	}
}